def analyze_grades(grades):
    if not grades:
        return 0,0,0
    max_grade = max(grades)
    min_grade = min(grades)
    average_grade = sum(grades) / len(grades)
    return max_grade, min_grade, average_grade

# 示例成绩列表，可替换为实际成绩数据
course_grades = [80, 90, 75, 85, 95]
highest, lowest, avg = analyze_grades(course_grades)
print(f"课程最高成绩为: {highest}")
print(f"课程最低成绩为: {lowest}")
print(f"课程平均成绩为: {avg}")